<template>
	<view>
		<view class="dee">
		<!-- 第一部分 -->
		<view class="dee1">
			<view class="dee1-1">
				<image src="../../static/img/nhlogo.png" mode=""></image>
				<view>6230****8471</view>
			</view>
			<view class="dee1-2">
				<view>交易金额</view>
				<view>{{arr.moneye}}</view>
			</view>
		</view>
		<view class="dee2">
			<view class="dee2-1">
				<view>
					交易时间
				</view>
				<view>
					 {{arr.timee}}  {{arr.specific}}
				</view>
			</view>
			<view class="dee2-1">
				<view>
					交易摘要
				</view>
				<view>
					{{arr.account}}
				</view>
			</view>
			<view class="dee2-1">
				<view>
					收款方
				</view>
				<view>
					{{arr.account}}
				</view>
			</view>
			<view class="dee2-1">
				<view>
					收款账户
				</view>
				<view>
					{{arr.account}}
				</view>
			</view>
			<view class="dee2-1">
				<view>
					交易类型
				</view>
				<view>
					{{arr.dealtype}}
				</view>
			</view>
			<view class="dee2-1">
				<view>
					交易渠道
				</view>
				<view>
					{{arr.ditch}}
				</view>
			</view>
		</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				arr:{},
				id:''
			}
		},
		onShow() {
			this.xuan()
		},
		methods: {
			onLoad(option){
				console.log(option.id);
				this.id=option.id
			},
			xuan(){
				uni.request({
					          url: "http://172.16.105.51:8000/getInfoById",
					          method: "POST",
					          data: {
					            id: this.id,
					          },
					          header: {
					            "Content-Type": "application/json",
					          },
					          success: (res) => {
								  console.log(res);
					            this.arr = res.data.data; 
					          },
					          fail: (error) => {
					            console.error("Error:", error);
					          },
					        });
			}
		}
	}
</script>

<style>
	.dee{
		height: 1600rpx;
		background-color: #f7f7f7;
	}
	.dee1{
		height: 150rpx;
		background-color: white;
	}
	.dee1-1{
		display: flex;
		align-items: center;
	}
	.dee1-1 image{
		width: 50rpx;
		height: 50rpx;
		margin-left: 20rpx;
	}
	.dee1-1 view{
		margin-left: 10rpx;
	}
	.dee1-2{
		display: flex;
		justify-content: space-between;
	}
	.dee1-2 view:nth-child(1){
		margin-left: 20rpx;
		margin-top: 20rpx;
		color: rgb(128,128,128);
		font-size: 25rpx;
	}
	.dee1-2 view:nth-child(2){
		font-size: 40rpx;
		margin-right: 20rpx;
		margin-top: 20rpx;
	}
	.dee2{
		background-color: white;
		margin-top: 20rpx;
	}
	.dee2-1{
		display: flex;
		height: 80rpx;
		justify-content: space-between;
		align-items: center;
	}
	.dee2-1 view:nth-child(1){
		margin-left: 20rpx;
	}
	.dee2-1 view:nth-child(2){
		margin-right: 20rpx;
		color: rgb(128,128,128);
	}
</style>